#ifndef XTREEMODEL_H
#define XTREEMODEL_H
#include <QStandardItemModel>

class QStandardItem;
class xTreeCheckManager;

class xTreeModel : public QStandardItemModel
{
    Q_OBJECT
public:
    enum
    {
        COL_NAME = 0,
        NB_COL
    };

    xTreeModel(QObject *parent = 0);
    virtual ~xTreeModel();

    void addSceneData(QStringList file);

    void removeAllData();

    void setCheck(int row, int col);    

signals:
    void sigExpandItem(QModelIndex mIndex);

protected:
    void reset();

private:
    QMap<QString, QIcon> m_IconMap;

    xTreeCheckManager* m_pCheckManager;
};

#endif // XTREEMODEL_H
